/////////////////////////////////////////////////////////////////////////
// Describe		: 
// Author		: linx214
// Created		: 2012-9-16  18:02
// Modify Record: 
/////////////////////////////////////////////////////////////////////////

#ifndef MYMAINPIXMAPITEM_HPP_
#define MYMAINPIXMAPITEM_HPP_

#include <QtGui/QGraphicsPixmapItem>

class QMyMainPixmapItem : public QGraphicsPixmapItem
{
public:
	QMyMainPixmapItem(const QPixmap &pixmap, QGraphicsItem *parent = 0);
	~QMyMainPixmapItem();


protected:
	virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
	virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
	virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);

private:
	bool		m_bIsMoving;
	QPointF		m_ptOffset;
	QString		m_qstrURL;
};

#endif // MYMAINPIXMAPITEM_HPP_